package com.top.ruizhong.main.host

import android.app.Activity
import android.content.Intent
import com.module.lemlin.base.BaseAbstractActivity
import com.top.ruizhong.R
import kotlinx.android.synthetic.main.activity_main_settlement.*

class MainSettlementActivity : BaseAbstractActivity() {

    companion object {
        fun open(activity: Activity) {
            val intent = Intent(activity, MainSettlementActivity::class.java)
            activity.startActivity(intent)
        }
    }

    override val layoutResId: Int
        get() = R.layout.activity_main_settlement

    override fun stateBar(): StatusBar {
        return StatusBar(isLightMode = false, view = flSettlementBar)
    }

    override fun initView() {

        ivSettlementBack.setOnClickListener { this.finish() }

        //我的订单
        tvSettlementOrder.setOnClickListener {
            SettlementOrderActivity.open(activity = this)
        }
        //结算明细
        tvSettlementDetails.setOnClickListener {
            SettlementDetailsActivity.open(activity = this)
        }
        //申请提现
        tvSettlementApply.setOnClickListener {
            SettlementApplyActivity.open(activity = this)
        }
    }
}